The small button with a star on it orders the selected unit to move under computer control. If you want to fight the entire battle this way, click on the lock button next to it. You can regain control by clicking on the lock again.
Be cautious using this feature especially when the two forces are of relatively equal strength. You might find that your computer advisor is not as careful with your regiments as you would be.